package com.sso.api.web.dao;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.spring.appservice.web.mainShowModel.Journal;
import com.sso.api.web.model.Baby;
import com.sso.api.web.model.RequestUser;
import com.sso.api.web.model.SsoFamily;
import com.sso.api.web.model.SsoFamily2;


public interface SsoMapper {
	List<String> checkIsMember(HashMap hm);
	String[] getBabyIDByFamilyID(HashMap<String ,Object> hm);
	BigDecimal getUserPoint(HashMap<String ,Object> hm);
	Map<String, Object> getMemberCardStatus(String c_user_id);
	
	int updateMemberIsValid(HashMap<String ,Object> hm);
	int updateFamilyMemberIsValid(HashMap<String ,Object> hm);
	int createInviteCode(HashMap<String ,Object> hm);
	
	List<Map<String,Object>> getFamilyByCode(String code);
	String getRoleByID(String c_user_id);
	int getRoleCount(HashMap<String ,Object> hm);
	int updateUserFamily(HashMap<String ,Object> hm);
	int updateCode(HashMap<String ,Object> hm);
	
	String[] getIDsByID(String id);
	
	/**
	 * 获取未使用的邀请码个数
	 * @param hm
	 * @return
	 */
	int getUnUsedInviteCodeCount(HashMap<String ,Object> hm);
	
	/**
	 * 获取未使用的邀请码
	 * @param hm
	 * @return
	 */
	List<Map<String,Object>> getUnUsedInviteCode(HashMap<String ,Object> hm);
	HashMap<String ,Object> getUserByID(String c_user_id);
	int addinviteCodeLog(Map<String,Object> s);
	
	int getUserCountByPhone(HashMap<String, Object> parm);
	int insertFamily(HashMap<String, Object> parm);
	int insertUser(RequestUser user);
	List<SsoFamily> getFamilyDetail(HashMap hm);
	
	int updateFingerHash(Map<String, Object> parm);
	
	int updatePhotoSrc(Map<String, Object> parm);
	List<SsoFamily2> getFamilyDetail2(HashMap<String, Object> hm);
	
	String checkFingerExist(String c_user_id);
	
	int updateUserPhoto(Map<String, Object> parm);
	String getFamilyIDByPhone(String phone);
	
	//语音播报
	List<Map<String,Object>> getNoAudioBaby(Map<String ,Object> hm);
	int updateUserVoice(Map<String, Object> parm);
	
	List<Map<String,Object>> getBabyListOrderByName(String kidsParkID);
	
	List<Baby> getMyBabyList(Map<String, Object> parm);
	
	List<Journal> getUserImage(Map<String, Object> parm);

}
